includeTargets << griffonScript("Init")
includeTargets << griffonScript("TestApp")


target(main: "The description of the script goes here!") {
    // TODO: Implement script here
    _testApp()
    new Thread({
        if( System.properties."os.name" ==~ /(?i).*win.*/ ){
            """cmd.exe /c "C:\\Program Files\\Mozilla Firefox\\firefox.exe" file://./${griffonSettings.baseDir}/test/reports/html/index.html""".execute()
        } else {
            "firefox ${griffonSettings.baseDir}/test/reports/html/index.html".execute()
        }
    } as Runnable).start()
}

setDefaultTarget(main)
